<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@page import="com.bizmerce.rnd.oms.codemng.service.FtaVO"%><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>표준원산지관리시스템:::FTA 협정관리:::협정정보</title>
<link rel="stylesheet" type="text/css" href="<c:url value='/css/common.css'/>" media="all" />
<script type="text/JavaScript">
	<!--
	function MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}
	
	function MM_preloadImages() { //v3.0
	  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
	
	function MM_findObj(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}
	
	function MM_swapImage() { //v3.0
	  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}
	//저장
	function fn_apply(){
		var form = document.forms['formOms02'];
		if(confirm("저장하시겠습니까?")){
			form.action="<c:url value='/codeMng/ftamng_updatefta.do'/>";
			form.submit();
		}
	}

	//취소
	function fn_cancel(){
		var form = document.forms['formOms02'];
		form.action ="<c:url value='/codeMng/ftamng_selectfta.do'/>";
		form.submit();
	}

	function fn_gotoTab2() {
		var form = document.forms['formOms02'];
		form.action ="<c:url value='/codeMng/offmng_selectoff.do'/>";
		form.submit();
	}

	function fn_gotoTab3() {
		var form = document.forms['formOms02'];
		form.action ="<c:url value='/codeMng/viewmng_selectview.do'/>";
		form.submit();
	}
	//-->
</script>
</head>
<body onload="MM_preloadImages('<%=request.getContextPath()%>/images/tab_on_01.jpg','<%=request.getContextPath()%>/images/tab_on_02.jpg','<%=request.getContextPath()%>/images/tab_on_03.jpg')">

<!-- 바로가기 메뉴 -->
<div class="accessibility">
	<ul>
		<li><a href="#mainNav">주메뉴바로가기</a></li>
		<li><a href="#subMenu">서브메뉴바로가기</a></li>
		<li><a href="sub_contents">콘텐츠바로가기</a></li>		
	</ul>
</div>

<!-- top 영역 시작 -->
<div id="top">
	<!-- 로그인 사용자정보 시작 -->
	<%@include file="/WEB-INF/jsp/oms/include/userinfo.jsp" %>
	<!-- 로그인 사용자정보 끝 -->
</div>
<!-- top 영역 끝 -->

<!-- 왼쪽영역 시작 -->
<div id="left">
	<!-- 왼쪽메뉴 시작 -->
	<%@include file="/WEB-INF/jsp/oms/include/leftmenu.jsp" %>
	<!-- 왼쪽메뉴 끝 -->
	
	<!-- 대쉬보드 시작-->
	<%@include file="/WEB-INF/jsp/oms/include/dashboard.jsp" %>	
	<!-- 대쉬보드 끝-->

</div>
<!-- 왼쪽영역 끝 -->


<!-- 콘텐츠 영역 시작 -->
<div id="container">
	<h3 class="tit"><span><strong>협정조회</strong></span></h3>
	<!-- 콘텐츠 감싸기 시작 -->
	<div id="contents">
		<div class="governing">
		원산지 판정을 위한 협정을 관리합니다.<br />
		협정을 선택하여 적용, 미적용을 적용함으로써 원산지 판정적용 여부를 결정할 수 있습니다.
		</div>	
		<br />
		<br />


	<!-- 탭 시작 -->
	<div class="tab">
		<ul>
			<li><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','<%=request.getContextPath()%>/images/tab_on_01.jpg',1)"><img src="<%=request.getContextPath()%>/images/tab_on_01.jpg" alt="협정" name="Image9" width="104" height="29" border="0" id="Image9" /></a></li>
			<li><a href="#" onclick="fn_gotoTab2()" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','<%=request.getContextPath()%>/images/tab_on_02.jpg',1)"><img src="<%=request.getContextPath()%>/images/tab_off_02.jpg" alt="일반기준" name="Image10" width="104" height="29" border="0" id="Image10" /></a></li>
			<li><a href="#" onclick="fn_gotoTab3()" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image11','','<%=request.getContextPath()%>/images/tab_on_03.jpg',1)"><img src="<%=request.getContextPath()%>/images/tab_off_03.jpg" alt="품목별기준" name="Image11" width="104" height="29" border="0" id="Image11" /></a></li>	
		</ul>		
	</div>
	<!-- 탭 끝 -->
	
	<!-- 데이터 테이블 시작 -->
	<div id="data">
		<form name="formOms02" method="post">
		<input type="hidden" name="pageIndex" value="${ftaSearchVO.pageIndex}"/>
	    <input type="hidden" name="id" value="${ftaSearchVO.id}"/>
		<table cellpadding="0" cellspacing="0" class="topline">
			<colgroup>
				<col width="25%" />
				<col width="30%" />
				<col width="*" />
			</colgroup>
			<tr>
				<th class="thC">FTA 협정명</th>
				<td class="tdGrayL"><input type="text" name="name" value="${fta.name}" class="input"/></td>
				<td class="tdGrayL">협정명을 입력합니다.</td>	
			</tr>
			<tr>
				<th class="thC">발효일자</th>
				<td class="tdGrayL"><input type="text" name="effectiveDate" value="${fta.effectiveDate}" class="input"/></td>
				<td class="tdGrayL"></td>	
			</tr>
			<tr>
				<td colspan="3" class="tdGrayL"><input type="checkbox" name="certificatedExporter" <c:if test="${fta.certificatedExporter}">checked="checked"</c:if>/> 인증수출자관리여부</td>
			</tr>
			<tr>
				<th class="thC">인증수출자관리번호</th>
				<td class="tdGrayL"><input type="text" name="certificatedExporterNo" value="${fta.certificatedExporterNo}" class="input"/></td>
				<td class="tdGrayL"></td>	
			</tr>
			<tr>
				<th class="thC">증명방식</th>
				<td class="tdGrayL">
					<select name="certificateType">
						<option value="자율증명" <c:if test="${fta.certificateType == '자율증명'}">selected="selected"</c:if>>자율증명</option>
						<option value="기관증명" <c:if test="${fta.certificateType == '기관증명'}">selected="selected"</c:if>>기관증명</option>
					</select>
				</td>
				<td class="tdGrayL"></td>	
			</tr>
			<tr>
				<th class="thC">증명서 유효기간</th>
				<td class="tdGrayL"><input type="text" name="avaiableDate" value="${fta.avaiableDate}" class="input"/> 개월</td>
				<td class="tdGrayL"></td>	
			</tr>
			<tr>
				<th class="thC">협정국가</th>
				<td class="tdGrayL"><input type="text" name="partners" value="${fta.partners}" class="input"/></td>
				<td class="tdGrayL"></td>	
			</tr>
			<tr>
				<td colspan="3" class="tdGrayL"><input type="checkbox" name="apply" <c:if test="${fta.apply}">checked="checked"</c:if>/> 협정적용여부</td>
			</tr>
		</table>
		</form>
	</div>
	<!-- 데이터 테이블 끝 -->
	
	<!-- 왼쪽정렬 버튼 시작 -->
	<div class="btnL">
		<ul>
			<li><a href="#" onclick="fn_apply()"><img src="<%=request.getContextPath()%>/images/btn/btn_save.jpg" alt="저장" /></a></li>
			<li><a href="#" onclick="fn_cancel()"><img src="<%=request.getContextPath()%>/images/btn/btn_cancel.jpg" alt="취소" /></a></li>
		</ul>
	</div>
	<!-- 왼쪽정렬 버튼 끝 -->

	</div>
	<!-- 콘텐츠 감싸기 시작 -->
</div>
<!-- 콘텐츠 영역 끝 -->
</body>
</html>